﻿using System;
using System.Collections.Generic;
using ApplicationSettings.Settings;
using ApplicationSettings.ViewModels;
using WinRTFramework.FrameworkConfiguration;

namespace ApplicationSettings.WinRTFrameworkConfiguration
{
    class IoCAdapter : IIoCAdapter
    {
        public IEnumerable<Type> GetAllRegisteredTypes()
        {
            yield return typeof(MainPageViewModel);
            yield return typeof(ContextSpecificSettingsDemoPageViewModel);
            yield return typeof (PermanentSettingsViewModel);
            yield return typeof(ContextSpecificSettingsViewModel);
        }

        public object GetInstanceOfType(Type t)
        {
            return Activator.CreateInstance(t);
        }
    }
}
